<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
        xmlns:h="http://java.sun.com/jsf/html"
        xmlns:f="http://java.sun.com/jsf/core"
        xmlns:p="http://primefaces.org/ui"
        xmlns:ui="http://java.sun.com/jsf/facelets">

<h:head>
</h:head>
<h:body style="background:#2A2D30">
<br></br>
 <p:panel  style="margin-bottom:10px;" >
   <h:form>
       <p:growl  id="msgs" showDetail="true"/>
    <p:breadCrumb>  
    <p:menuitem  value="Profile" url="home.xhtml?admin=true" /> 
    <p:menuitem value="Profile " url="profile.xhtml" />  
     
    </p:breadCrumb> 
    </h:form>
    </p:panel>
<p:panel style="height:450px">
                <h:form id="form">
                    <p:fieldset legend="Available Standard Packages">  
                    <br/>
                    <br/>
                    
                
                        <p:dataTable id="standardpkPanel"
                                value="#{standardpkbean.listStandardpkDTO}" var="standardpk"
                                emptyMessage="There is no Standard package yet" 
                                rows="10">
                                
                                <p:column headerText="City">
                                        <h:outputText value="#{standardpk.sCity}" />
                                </p:column>
                                <p:column headerText="Number Of Days">
                                        <h:outputText value="#{standardpk.sNofdays}" />
                                </p:column>
                                <p:column headerText="Hotel">
                                        <h:outputText value="#{standardpk.sHotel}" />
                                </p:column>
                                <p:column headerText="Flight">
                                        <h:outputText value="#{standardpk.sFlight}" />
                                </p:column>
                                 <p:column headerText="Excursion">
                                        <h:outputText value="#{standardpk.sExcursion}" />
                                </p:column>
                                
                                <p:column headerText="Price">
                                        <h:outputText value="#{standardpk.sPrice}" />
                                </p:column>
                                
                                <p:column>
                                <p:commandButton value="Delet" action="#{standardpkbean.remove(standardpk.sID)}"
                                   update="standardpkPanel" title="Complete"
                                    oncomplete="PF('successDialog').show()"/>
                                </p:column>
                           
                        </p:dataTable>
                        <br/>
                        <br/>
                            </p:fieldset>  
                        
                        
                  <p:dialog header="Status" widgetVar="successDialog" resizable="false"
                        id="successDlg" showEffect="fade" hideEffect="drop" modal="true"
                        draggable="no">
                        <p:panel >
                                <h:panelGrid columns="3">
                                        <h:outputText value="Selected Package is deleted!"/>
                                </h:panelGrid>
                        </p:panel>
                        <h:form>
                                <br />
                                <p:button value="Ok!" outcome="deletStandardpk.xhtml" />
                              
                        </h:form>
                </p:dialog>
                 
   </h:form> 
                   </p:panel>
   
   
  
        <br></br>
       <p:panel header="">
      <p:button value="back" outcome="index.xhtml" />
      </p:panel>
      
                       
                              
</h:body>
</html>
